package one.stand.fallback;

import com.jmp.base.dto.*;
import com.jmp.feign.LabelFeign;
import one.stand.model.ResultModel;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 */
@Component
public class LabelFallBack implements LabelFeign {

    @Override
    public ResultModel<LabelSaveResponse> save(LabelSaveRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delete(LabelDeleteRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel update(LabelUpdateRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel relate(LabelRelateRequest request) {
        return ResultModel.faultTolerant();
    }
}
